//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.dao.wills;

import com.aidong.dao.wills.BaseDao;
import com.aidong.model.wills.ReportFileList;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class ReportFileListDao extends BaseDao<ReportFileList, Integer> {
    public ReportFileListDao() {
    }

    public List<ReportFileList> getDataLstByFileNM(String fileName) {
        String sql = "select * \nfrom ReportFileList a \nwhere a.ReportFileName = :p1 \n";
        new ArrayList();
        List lst = this.queryListBySql(ReportFileList.class, sql, new Object[]{fileName});
        return lst;
    }

    public void updateReportFileList(List<ReportFileList> lst) {
        if(lst != null && lst.size() != 0) {
            Iterator i$ = lst.iterator();

            while(i$.hasNext()) {
                ReportFileList rp = (ReportFileList)i$.next();
                rp.setUpdateTime(new Date());
                this.getSession().update(rp);
            }

        }
    }
}
